package org.dingdingCompany;

import beans.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class ApplicationContext1
{
    public static void main( String[] args )
    {

        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        User user1 =(User) ac.getBean("user1");
        System.out.println(user1.toString());
        User user2 =(User) ac.getBean("user2");
        System.out.println(user2.toString());
    }
}
